#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>




int main()
{
	int arr[] = { 3,2,4,7,3,10,5,18,34 };
	int len = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < len - 1; i++)
	{
		for (int j = 0; j < len - 1 - i; j++)
		{
			if(arr[j]>arr[j+1])
			{
				int tmp = 0;
				tmp = arr[j + 1];
				arr[j + 1] = arr[j];
				arr[j] = tmp;
			}
		}
	}





	for (int j = 0; j < len; j++)
	{
		printf("%d  ", arr[j]);
	}
}